#include "pagehelpoperation.h"
#include "ui_pagehelpoperation.h"

PageHelpOperation::PageHelpOperation(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::PageHelpOperation)
{
    ui->setupUi(this);
    setAutoFillBackground(true);  //设置自动填充
    QPalette palette = BKGCLR;
    setPalette(palette);
}

PageHelpOperation::~PageHelpOperation()
{
    delete ui;
}

void PageHelpOperation::on_Btn_Return_clicked()
{
    emit signal_go_back();
}

void PageHelpOperation::on_Btn_NextPage_clicked()
{
    if(current_index_ < ui->stackedWidget->count()-1)
        current_index_++;
    ui->stackedWidget->setCurrentIndex(current_index_);
}

void PageHelpOperation::on_Btn_PrePage_clicked()
{
    if(current_index_ > 0)
        current_index_--;
    ui->stackedWidget->setCurrentIndex(current_index_);
}
